from pattern.circuit import Control


class entry(Control):
    
    class Variable(object):
        def __init__(self):
            self.name = None
            
            
    def __init__(self):
        self.var = self.Variable()
        
    def please(self, event):
        outlet = self.acquireOutlet(event, "name")
        if outlet is not None:
            self.var.name = self.getCaption(outlet)
        return self.var
